import request from '@/utils/request'

// 查询按钮文字列表
export function listDescription(query) {
  return request({
    url: '/button/description/list',
    method: 'get',
    params: query
  })
}

// 查询按钮文字详细
export function getDescription(id) {
  return request({
    url: '/button/description/' + id,
    method: 'get'
  })
}

// 新增按钮文字
export function addDescription(data) {
  return request({
    url: '/button/description',
    method: 'post',
    data: data
  })
}

// 修改按钮文字
export function updateDescription(data) {
  return request({
    url: '/button/description',
    method: 'put',
    data: data
  })
}

// 删除按钮文字
export function delDescription(id) {
  return request({
    url: '/button/description/' + id,
    method: 'delete'
  })
}
